package org.example.springboot_s3.Dao;

import org.example.springboot_s3.pojo.Emp;
import org.example.springboot_s3.utils.XmlParserUtils;
import org.springframework.stereotype.Repository;

import java.util.List;
@Repository
public class Daoimlp implements Dao {

    @Override
    public List<Emp> getemp() {
        String file = this.getClass().getClassLoader().getResource("emp.xml").getFile();
        return XmlParserUtils.parse(file, Emp.class);
    }
}
